import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SEatBeansInfo
    
    export  class SEatBeansInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SEatBeansInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.kill);
            arg1.writeInt(this.eatBeans);
            arg1.writeInt(this.beansRemain);
            arg1.writeInt(this.defenseMan);
            arg1.writeInt(this.eatingMan);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.kill = arg1.readInt();
            this.eatBeans = arg1.readInt();
            this.beansRemain = arg1.readInt();
            this.defenseMan = arg1.readInt();
            this.eatingMan = arg1.readInt();
            return;
        }

        public /* const */_type: int=780;

        public /* var */kill: int;

        public /* var */eatBeans: int;

        public /* var */beansRemain: int;

        public /* var */defenseMan: int;

        public /* var */eatingMan: int;

        public static /* var */_regist: SEatBeansInfo;
    }

            SEatBeansInfo._regist = new SEatBeansInfo(true);
        